﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.IO;
using IPMsgExpections;
using CommonUtility;

namespace MessageCenter
{
    public class MessageReadMsg : MessageModel
    {
        internal MessageReadMsg(
            uint version,
            uint indexPack,
            string userName,
            string hostName,
            uint commondWord,
            string attachMessages)
            : base(version, indexPack, userName, hostName, attachMessages)
        {
            this.CommandWords = commondWord;
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="userName">当前主机用户名</param>
        /// <param name="hostName">当前主机名</param>
        /// <param name="indexPackage">当前包序号</param>
        /// <param name="whichPackHasBeenRead">确认阅读的包序号</param>
        public MessageReadMsg(
            string userName,
            string hostName,
            uint indexPackage,
            uint whichPackHasBeenRead)
            : base(userName, hostName, indexPackage)
        {
            base.CommandWords = ConstWords.CommonCommand.IPMSG_READMSG;
            base.AttachMessages = whichPackHasBeenRead.ToString();
        }
    }
}
